<%= form_for [:admin, @settle], html: { class: "card" } do |f| %>
  <div class="card-body">
    <h3 class="card-title">
      <%= @settle.new_record? ? "申请结算" : "审批结算" %>
    </h3>
    <div class="row">
      <div class="col-md-4">
        <div class="form-group">
          <label class="form-label">结算金额</label>
          <div class="form-control-plaintext"><%= @settle.fee %></div>
        </div>
      </div>
      <div class="col-md-4">
        <div class="form-group">
          <div class="form-label">审批结果</div>
          <div class="custom-controls-stacked">
            <label class="custom-control custom-radio custom-control-inline">
              <%= f.radio_button :state, "checked", { class: "custom-control-input" } %>
              <span class="custom-control-label">通过</span>
            </label>
            <label class="custom-control custom-radio custom-control-inline">
              <%= f.radio_button :state, "cancel", { class: "custom-control-input" } %>
              <span class="custom-control-label">拒绝</span>
            </label>
          </div>
        </div>
      </div>
      <div class="col-md-12">
        <div class="form-group">
          <label class="form-label">结算备注</label>
          <%= f.text_field :remark, class: "form-control" %>
        </div>
      </div>
    </div>
  </div>
  <div class="card-footer text-right">
    <%= f.submit "保 存", class: "btn btn-primary" %>
  </div>
<% end %>